*{box-sizing: border-box}
body{
  font-size: 14px;
}

.fl{  float:left; }
.fr{float:right;}

.col-1-4{
  width:25%;
  float: left;
}

.detail-header{
  background: #8c629e;
  overflow: hidden;
  padding-top: 10px;
  position: fixed;
  z-index: 10;
  width: 100%;
  height: 44px;
  .header-item{
    text-align: center;
    padding: 5px 15px;
    .hi-text{
      color:#fff;
      padding-bottom: 12px;
    }
    &.active .hi-text{
        border-bottom: 2px solid #fff;
    }
  }
}

.transform(@percent){
  -webkit-transform: translateX(@percent*1%);
  -moz-transform: translateX(@percent*1%);
  -ms-transform: translateX(@percent*1%);
  -o-transform: translateX(@percent*1%);
  transform: translateX(@percent*1%);
}

.transition(@prop,@time,@fn){
  -webkit-transition: @prop @time @fn;
  -moz-transition: @prop @time @fn ;
  -ms-transition: @prop @time @fn;
  -o-transition: @prop @time @fn;
  transition: @prop @time @fn;
}

.content-wrapper{
  width: 100%;
  overflow: hidden;
  padding-top: 44px;
  .content{
    background: yellow;
    overflow: hidden;
    width:400%;
    .transition(transform,0.4s,ease-in);

    &.s1{
      .transform(-25)
    }

    &.s2{
      .transform(-50)
    }

    &.s3{
      .transform(-75)
    }
    .content-item{
      width: 25%;
      float:left;
    }
  }
}

.content-item{
  &:first-child{
    height: 1000px;
  }

  &:nth-child(2){
    height: 2000px;
  }

  &:nth-child(3){
    height: 2000px;
  }

}

